Using the StringTemplate trait could help with that.