Disallow single quotes and trailing whitespace

...and update the tests to conform.