remove \n from the logs