The rangeOfString: method is case-sensitive. Return to the NSString class reference and find the method that you would use if you needed to do a case-insensitive search.
Then find the NSString method that will return the actual portion of the string that was found.