My code just seems to accept input strings forever, and I cannot for the life of me figure out why. Can someone help?