Remove trailing half-space of each line