Modified traversed set into set of strings