Remove trailing space from output.