edit distance in character