Clean up Token. Use type string instead of type code in exception.