Replace placeholder text with variables in profile templates