replace all + with -
<p>I am trying to replace a <code>+</code> character into a <code>hyphen</code> I have in my string.</p>

<pre><code>String str = "word+word";
str.replaceAll('+ ', '-');
</code></pre>

<p>I tried using replace but it throwing an <code>exception</code>.Is there any other method to do this.</p>
