compiletest: fix to remove trailing whitespace