Strip extraneous \n.