Remove line trailing characters when grading