I want to be able to replace every other instance of a string using some sort of function, maybe working something like this:

```
replace_every_other("i like ice cream","i","1")
// output => i l1ke ice cream
function replace_every_other(string, replace_string, replace_with) {
     ...
}

```

I've tried search stack overflow for the solution, but to no avail.