fixed string replacement breaking templates for alt cloze format