title: replace a single quote in a string with another single quote
body: <p>I have a String with single quote. I want to replace the single quote with 2 single quotes.
  I tried using</p>
  
  <pre><code> String s="Kathleen D'Souza";
  
  s.replaceAll("'","''");
  
  s.replaceAll("\'","\'\'");
  
  s.replace("'","''");
  
  s.replace("\'","\'\'");
  </code></pre>
  
  <p>But the single quote is not getting replaced with 2 single quotes.</p>