Regarding Levenshtein: Wladimir Levenshtein developed 1995 an algorithm for this. It is called the Levenshtein Distance.
Some years ago I developed a VI to calculate the Levenshtein Distance. Here it is (LabVIEW 2016).
Can you post your VIs in LV2020 or 2019, please.
Levenshtein Distance.vi