Look into the TSL coding book. There are functions you can employ.
compare_string (This one may be from a CSO function library which you may no longer be able to obtain) and Index and even limited regular expressions.
Using the built in functions and some basic looping you can build the functions you need.
Take basis string - loop through each character, compare the validation string - when incorrect report, or track when the string returns to expected and expand the reporting.
As for comparing to the data table - this is basic WinRunner functionality to step through a datatable line by line, take the item for comparison and check it to the basis string you have captured from the application.
Insanity: doing the same thing over and over again and expecting different results