Add prefix/suffix to lines of a text stream.