1) use local call `replace`
2) don't use `%r`. It calls to `Regex.compile!` and `Regex` is not compiled. It confuses the ParallelCompiler. You should only use local calls inside the module.