Use a string-stream instead of making of a build-and-reduce pattern.