Trimming nextLine could lead to erroneous results

nextLine.trim() could lead to erroneous results. For example, when a line (which was not changed) starts with - or +. In unified diff, a space is added in front of such a line to distinguish them from changed lines. This distinguishing space is removed by trimming nextLine. This behavior could for example be observed by MySQL dump files created with mysqldump.