String.prototype.ltrim = function() {
return this.replace(/^\s+/, "");
String.prototype.ltrim = function() {
return this.replace(/^\s+/, "");
String.prototype.rtrim = function() {
return this.replace(/\s+$/, "");
String.prototype.rtrim = function() {
return this.replace(/\s+$/, "");