Remove unnecessary StringIO