string method replace is not working properly
<p>I am using <code>replace</code> method of string,</p>

<pre><code>     var text = this ex is not working.;
     text = text.replace(" ", "+");
     alert(text);
</code></pre>

<p>and got alert :</p>

<pre><code>     this+ex is not working.
</code></pre>

<p>Whats the problem here?</p>
