improved string difference routine to return a window around the lines that didn't match