Fix processing by striping trailing \n.