Created a function from string trigger to set up easier templating