Maybe I’m trying to be too clever, but what about using `stringByTrimmingCharactersInSet:` here to pull any apostrophes off the ends and assign the result to `type`? Then, you don’t even need line 251.