edit distance - field wise and token wise