Refactoring find functions of string_t.