Remove template text and add placeholders