function Trim() {
return this.replace(/\s+$|^\s+/g,"");
}

function LTrim() {
return this.replace(/^\s+/,"");
}

function RTrim() {
return this.replace(/\s+$/,"");
}
   
String.prototype.Trim=Trim;   
String.prototype.RTrim=RTrim;   
String.prototype.LTrim=LTrim;