Delete blank spaces after "$ " in JS?
<p>I want to eliminate blank spaces after '$'. E.g:</p>

<pre><code>"$  1000" &gt; "$1000"
</code></pre>

<p>I'm trying to do it like this to eliminate at least one space:</p>

<pre><code>text = text.replace(/^($%20)+/, '$');
</code></pre>

<p>But it's not working, how can it be done?</p>
