Calculate levenshtein distance index between two strings.