change the tokenize function since the older tokenizer didn't take punctuation into consideration