sS spliceString(S a, int from, int to, S b) { ret takeFirst(a, from) + b + substring(a, to); }