title: Remove space before punctuation javascript/jquery
body: <p>I want to remove space before every punctuation in Javascript/jquery. For example</p>
  
  <pre><code>Input string = " This 's a test string ."
  
  Output = "This's a test string."
  </code></pre>