"string".replace("old", "new", count)
string
old
new
count
"xoxoxoxo".replace("xo", "new", 2) ... newnewxoxo
앞의 "xo"가 두 번만 replace된다.