adding text method to prevent linebreaks from cutting words in half