modify the string_util bug and add a new method by re module