ignore leading and trailing whitespace in line diffs
fixed small bug that caused a failing test
fixing bug in LineDiff.addEdit
removed unnecessary parameters and useless calculation.
removed unnecessary calls to toString