title: I'm implementing hashtag recognizer in UITextView but it never highlights two words with the same begining
body: <p>I found this question: <a href="https://stackoverflow.com/questions/34294064/how-to-make-uitextview-detect-hashtags">How to make UITextView detect hashtags?</a> and I copied the accepted answer into my code. I also set up a <code>delegate</code> to my textview and then put this code:</p>
  
  <pre><code>func textViewDidChange(textView: UITextView) { 
      textView.resolveHashTags()
  }
  </code></pre>
  
  <p>By doing that I want to check the user's input on the textview and each time user types a #hashtag - I will automatically highlight it. </p>
  
  <p>But there is a weird problem: it never highlights words that starts with the same letters.</p>
  
  <p>It looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/a5fjQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a5fjQ.png" alt="enter image description here"></a></p>
  
  <p>what might be the problem here?</p>