search and replace template strings updated