title: Replace single quotes for insert to MYSQL
body: <p>I have a task to replace single quotes for insert to MYSQL database and have following code:</p>
  
  <pre><code>String str = "A Linux's distributions";
  
          if (str.contains("'")) {
              str.replace("'", "''");
          }
  </code></pre>
  
  <p>But, this condition is not working. I sure that the solution is very simple ...     </p>