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

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

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