clean up space and \n