title: How to remove zero width spaces from string in Swift?
body: <p>I need to filter invisible character from a string. In the attached screen shot, string "​Cilantro" has some hidden character and when i get count of this before and after removing hidden character it shows different character count. </p>
  
  <p>I just want to filter invisible characters not special characters, for example I dont want to filter á, ã è etc characters. </p>
  
  <p>Note: I removed hidden characters using "delete" button.</p>
  
  <p>For the reference I am adding here the String with invisible character: "​Cilantro". I am not sure if it will show at your end too.</p>
  
  <p><a href="https://i.stack.imgur.com/t4ReS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t4ReS.png" alt="enter image description here"></a></p>