New routine added; writes a string to a stream.