token document working on substrings