implemented traceback for string_compare