static S replaceSubstring(S s, int fromIndex, int toIndex, S replacement) { ret substring(s, 0, fromIndex) + replacement + substring(s, toIndex); }