fixed: a 'typename' keywords were missing in some places fixed: removed GetStringFromStream() method it returns a reference to a local object (from stream.str()) now the code is used directly