fixing replaceAllWithLabels to work on multi-lingual forms. Comes with tests.