Remove error, output, and trailing whitespace.