added string distance