Fixed a typo and substituted istringstreams.