Changed the containsString to rangeOfString.
containsString is supported from iOS 8 only.