I don't like "contents" repeated like that. That's all I see.
But it is better than my code since it's more robust, my code could silently break if someone removes a `<<`, there would be two strings then, and only the later returned.

So, up to you @dentarg