refactor(util) replaceStr