finish string_algo