title: Left Trim in Javascript
body: <p>There are a lot of scripts out there to trim a string in JavaScript, but none that allow you to just left trim a string.</p>
  <p>This is what I use to trim:</p>
  <pre><code>String.prototype.trim = function() {
      return this.replace(/^\s+|\s+$/g,&quot;&quot;);
  }
  </code></pre>
  <p>I would like to change this a little and create a new function called leftTrim that only removes the leading space.</p>