added memory of user input, added some code to clean punctuation