Remove trailing new lines