add ToString function to TokenType
fix space bug and ignore reg escaping.