It’s faster to modify text while it is still in a buffer. The code is also much simpler and nicer to look at.