Line Ending Correction