now checks if characters are correct. goes through every sentence in input.txt