Fixed doInput(),should always work now. Also can convert words to lowercase