Moved startsWith function from tokenizer to polyfill