Returns a string representing the type of the token and the optional text if present.
See Implementation
Returns a string representing the type of the token and the optional text if present.