how to remove unwanted text in string.replace()method : <p>I have one word <strong>a</strong>
And i replace it like this.</p>

<pre><code>  String .replace("a","aa");
</code></pre>

<p>when i type <strong>a</strong> then output =aa
And when i type <strong>ab</strong> then output=aab
I want to remove unwanted any word.
i try this code.
     String.replace("b","");
and type <strong>ab</strong>
then its work. output=aa.but when i type <strong>ac</strong> then output=aac.i want to short way for remove any unwanted word.it is possible?
Thanks in advance.</p>
