Fixed failing tokenizer tests, added string utilities