Fixed bug when the replaceable string have $_ inside it. Workaround to fix it