added a new function for string comparators