check template token name for invalid chars; that way we find ')' etc.