title: Objective-C: NSPredicate LIKE doesn't like spaces. Is there an escape sequence to replace blanks with?
body: <p>I have a NSPredicate that looks like this:</p>
  
  <pre><code>NSPredicate *likePredicate3= [NSPredicate predicateWithFormat:@"synonyms LIKE[cd] %@",[NSString stringWithFormat:@"%@", searchText]];
  </code></pre>
  
  <p>I apply it to an NSArray of objects of a class that has the 'synonyms' property. </p>
  
  <p>It works fine when the searchText is a whole word such as "Thanks".  However if I try to use strings with space in them such as 'Thank you', it fails and the predicate search does not find the match in the array.</p>
  
  <p>Is there a way to ask NSPredicate to work with words that have a blank space(s) in them?</p>
  
  <p>thanks.</p>