Hello,
We have done some tests and everything is replaced correctly. Please, could you send to contact[at]phpdocx.com the most simple script that illustrates your issue?, as we need to run it please avoid doing external connections (such as databases or web services) and also attach the template if any is used.
Regards.
P.S. : we have changed your username of the forum (it was an email) to avoid spam bots.