Performance improvement to StringProducer.

* Remove dead code and add notes to some utils.net