Implement StringIO
Use StringIO in CaptureIO

capture_io retunrs `""` instead of `nil`