use sub() and repl