removing \n returned from bash