Correct string from client with edit-distance algorithm and return by server.