The line about clicking on string to display the content should be printed only at this point, not before.