Remove trailing line breaks