Here you can find the source of LTrim()
String.prototype.LTrim = function(){ return this.replace(/(^\s*)/g, ""); };
String.prototype.leftTrim = function () { return this.replace(/^\s+/, "");
String.prototype.leftTrim = function() { return this.replace(/(^\s*)/g, "");
String.prototype.leftTrim =function(){ return this.replace(/^\s+/,'');
String.prototype.lefttrim = function( ) return( this.replace(new RegExp("^[\\s]+", "gm"), "") ); };
String.prototype.TrimStart = function( aimStr ) var str = this; var re = My.RegExp.InvolvedCharsRegExp; var reStart; if ( aimStr ) aimStr = aimStr.replace( re, '\\$1' ); reStart = new RegExp( '^(' + aimStr + ')+' ); ...
String.prototype.LTrim = function() { return this.replace(/^\s+/g, "");