I have a predetermined hierarchy of strings and would like to return the string which is ranked higher in the hierarchy, some of the strings are sub-strings of another string. For e.g. "abb" and "abb be"I have a predetermined hierarchy of strings and