Docstring for generate-string.