Remove line ends