getSting function

function prompts user for a string. repeats until valid string is
input. prints questions and results to console.