Renamed _contents_str to pformat, which is pretty much what it does