Merging shared code into StringToken.