levensthein distance for string attributes