Improve docstring on string_gen