Assignment 3

I use if/then too much, so I practiced my switch and while. Using while
is the most efficient loop ‘cuz you can test against the length of the
string as you shorten it. (is there a more efficient way?)