fix string generator. fix test #3. All tests are correct.