Finish most of Tokenize function with two errors