replace \n with empty