Altering the pairwise alignment code to avoid spurious alignments at the
very ends of the sequence.