Remove trailing newlines.