another solution reached
Refactor ConstantTokenizer