use a function as second param in src.replace() to avoid replacing of potential back references