replaceCharAtIndex static method
Implementation
static String replaceCharAtIndex(String original, int index, String replacement) {
if (index < 0 || index >= original.length) {
return original;
}
return original.replaceRange(index, index + 1, replacement);
}