title: Remove apostrophe and white space from string
body: <p>So I'm playing around string manipulation. I'm done replacing white space characters with hyphens. Now I want to combine replacing white spaces characters and removing apostrophe from string. How can I do this?</p>
  
  <p><strong>This is what I've tried so far:</strong></p>
  
  <pre><code>    String str = "Please Don't Ask Me";
      String newStr = str.replaceAll("\\s+","-");
  
      System.out.println("New string is " + newStr);
  </code></pre>
  
  <p><strong>Output is:</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>Please-Don't-Ask-Me
  </code></pre>
  
  <p><strong>But I want the output to be:</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>Please-Dont-Ask-Me
  </code></pre>
  
  <p>But I can't get to work removing the apostrophe. Any ideas? Help is much appreciated. Thanks.</p>