title: component(separatedBy:) versus .split(separator: )
body: <p>In Swift 4, new method <code>.split(separator:)</code> is introduced by apple in String struct. So to split a string with whitespace which is faster for e.g..</p>
  
  <pre><code>let str = "My name is Sudhir"
  
  str.components(separatedBy: " ")
  
  //or 
  
  str.split(separator: " ")
  </code></pre>