Move levenshtein distance fn to core::str.