Trim characters from an NSAttributedString