use with-output-to-string instead setq string