added functionality to do word-wrap