Fixed bug: Using same state for all values in a generation.

Same StringBuilder object was being used.
Needs to be made more functional.