Added destructor for implement string_factory_creator