Remove trailing white space from output header and records