return string and print output to user