Fun with edit distance