fixed string replacement in email template