title: rangeOfString good but not perfect for my string comparison
body: <p>I would like to compare different strings and neither <code>isEqualToString</code> nor <code>rangeOfString</code> can, in my case, do the work apparently. </p>
  
  <p>For example I have the following strings:</p>
  
  <pre><code>s1 = Hello World
  s2 = World
  </code></pre>
  
  <p>I now would like to compare these and that works fine with <code>rangeOfString</code>, return true, the issue is when i then compare for example this:</p>
  
  <pre><code>s1 = helloworldhello
  s2 = world
  </code></pre>
  
  <p>this should in my case return false but <code>rangeOfString</code> will return true.</p>
  
  <p>The condition are the following:</p>
  
  <pre><code>I want to find exact matches.
  I want to find similar strings for example "Anna" should be equal to "Hanna Anna"
  I do not want to find half words for example "Ann" should not be equal to "Anna"
  I do not want to find a part of a word for example "nn" should not be equal to "Anna"
  </code></pre>