Tokenizer works, however it loops when not encountering a match