Add helper private method that returns an attributed string from a string