Use a stream for string output