Market: calculate edit distance on lowercased strings.