Fixed attributed-string function
Wrap text if it can't fit on one line