Added option to set row separator, default \n