Made carriage return newline checking in tokenizer more efficient