Add prefix and suffix to each line throw a stream.