add method tokenize_with_hash