Cast template placeholders to strings