Stripping leading/trailing whitespace, specifically for check output.