Correct StringIO syntax