[core] ibdawg: clean words before damerau-levenshtein comparison