Calculate the edit distance between NSString objects.