update NSAttributedString to modern objective-c syntax