Use `replaceAll()`, not `replaceFirst()` when building cloze cards where Anki desktop uses `replace()`.