ensure we don't strip trailing whitespace needlessly