sS duplicateLastChar(S s) { ret s + takeLast(1, s); }