Updates doctests to use fromstring() method instead of read().