You could store the string to be displayed in a variable. Then simply refer to the length here and iterate over the individual characters below.