Fix to previous commit

I was incorrectly calling the method FormatUtil.replaceFormat. Hopefully, this fixes the issue with the compilation failure.