Default implementation adds std::endl at the end of the stream. In the case of string this extra '\n' is not desired.