Removes all hanging newlines