function splice(str, token, replacement) {
  var i = str.indexOf(token);
  return str.substr(0, i) + replacement + str.substr(i + token.length);
}
Faster alternative to `String.replace()` when the
index of the token to be replaces can't be supplied