Add carriage return to last lines