Remove the trailing carriage returns.