remove beginning & ending line breaks in output