template from string