fix string generation
Merge pull request #537 from Trott/string-fix

fix string generation