自定义replace函数,模仿shell的sed替换

NoSuchKey