fixed the implementation of ItemData::getString() with stringstream.