trim to levenshtein