delete dangling new lines