String.replace() doesn't work after String.split()
<p>I've got a problem with my js code: </p>

<pre><code>var string = "sometext: tekst 555;";
var part  = string.split(":");
</code></pre>

<p>So part[] is ["sometext", " tekst 555;"]</p>

<p>Now, I want to remove first white spaces in part[1], so I do:</p>

<pre><code>part[1].replace(/\s+(?=\w)/, "");
</code></pre>

<p>and I should receive string "tekst 555;", but I get " tekst 555;". In fact, when I console.log this, it works! (In console in chrome and firefox) Can anybody tell me what is wrong with this code?</p>
