string input/output test
chapater 2 looping and counting