title: Swift startsWith method?
body: <p>Is there such thing as a startsWith() method or something similar in Swift?</p>
  
  <p>I'm basically trying to check if a certain string starts with another string. I also want it to be case insensitive. </p>
  
  <p>As you might be able to tell, I'm just trying to do a simple search feature but I seem to be failing miserably at this.</p>
  
  <p>This is what I'd like:</p>
  
  <p>typing in "sa" should give me results for "San Antonio", "Santa Fe", etc.
  typing in "SA" or "Sa" or even "sA" should also return "San Antonio" or "Santa Fe".</p>
  
  <p>I was using</p>
  
  <pre><code>self.rangeOfString(find, options: NSStringCompareOptions.CaseInsensitiveSearch) != nil 
  </code></pre>
  
  <p>prior to iOS9 and it was working just fine. After upgrading to iOS9, however, it stopped working and now searches are case sensitive.</p>
  
  <pre><code>    var city = "San Antonio"
      var searchString = "san "
      if(city.rangeOfString(searchString, options: NSStringCompareOptions.CaseInsensitiveSearch) != nil){
          print("San Antonio starts with san ");
      }
  
      var myString = "Just a string with san within it"
  
      if(myString.rangeOfString(searchString, options: NSStringCompareOptions.CaseInsensitiveSearch) != nil){
          print("I don't want this string to print bc myString does not start with san ");
      }
  </code></pre>