no more use of regex inside replaceTagByValue