Fixed lambda code for stringstreams.