Use a string as template