text to be displayed can be passed in as a string instead of individual characters