clean up string_permutations.cpp