fix MD string mismatch calculation to handle soft clipping and insertions correctly, references #229