Added may memory setting to string stream.