Replace particular symbols
<p>Hello friends I am getting a string</p>

<pre><code> [1-Sept-2012 13:20 1-Oct-2012 13:20  India , 1-Sept-2012 17:42 28-Sept-2012 17:42  India ]
</code></pre>

<p>I am trying to implement this code, but it is not working </p>

<pre><code>string.replace(",", "$");
string.replace(" ", "@");
</code></pre>

<p>Expected Output:-</p>

<pre><code>[1-Sept-2012 13:20@1-Oct-2012 13:20@India@$1-Sept-2012 17:42@28-Sept-2012 17:42  India@$]
</code></pre>

<p>Please help me with the same.
Thanks</p>
