disallow whitespace in names

get unparser tests to match implementation,
although the solution is ugly (extra spaces and newlines)