title: How to remove spaces from a string in Swift?
body: <p>I have the need to remove leading and trailing spaces around a punctuation character.</p>
  
  <p>For example: <code>Hello ,  World ... I 'm a newbie iOS Developer.</code></p>
  
  <p>And I'd like to have: > <code>Hello, World... I'm a newbie iOS Developer.</code></p>
  
  <p>How can I do this? I tried to get components of the string and enumerate it by sentences. But that is not what I need</p>