StringIO tests done, ready to refactor.
StringIO cleanup.