title: Swift 3 remove all blank spaces which are not inside quotes ""?
body: <p>What tools does Swift offer to remove only the blank spaces that are not inside the double quotes? ["Alexa", "Siri", "Thomas Marcel"] should be transformed to ["Alexa","Siri","Thomas Marcel"]. I know that you can use "replacingOccurrences", but that would remove the blank space inside the quotes.</p>
  
  <p>Thank you for your help!</p>
  
  <p>edit: thanks to the comments i found out that i just need json serialization!</p>
  
  <pre><code>do {
          let data = try JSONSerialization.data(withJSONObject: yourArray)
          jsonString = NSString(data: data, encoding: String.Encoding.utf8.rawValue) as! String
      }
      catch {
      }
  </code></pre>