title: remove unwanted space in between a string
body: <p>I wanna know how to remove unwanted space in between a string. For example: </p>
  
  <pre><code>&gt;&gt;&gt; a = "Hello    world" 
  </code></pre>
  
  <p>and i want to print it removing the extra middle spaces.</p>
  
  <p>Hello world</p>