handling \n delimiter