extend functionality for use with attributedString