Add function replace_all.