Remove trailing lines.