Don't mess with NSRanges anymore; Mark up your strings for quick attributes