str.setCharAt(index,'X')
<p>Is there a way to use str.charAt(index) to replace a specific char by index?
Something like this:</p>

<pre><code>str.setCharAt(1,'X'); // replace 2nd char with 'X'
</code></pre>

<p>Is there any easy way to do that?</p>
