Fixed replaceAll, added JSON binding