[fix] refactor replace in strings