I think you intend to call the consumeTokensFromString function you've added below, right? In which case I think this is wrong.