Could you clarify your question? You're not explicitly converting anything to strings anywhere. So while anything does indeed need to be converted to a string before being printed, this happens implicitly in your code (when you use #{}), so I'm not sure why you say that you need to convert your variables to strings. That happens automatically.