String insert(int index, String value) { var newValue = substring(0, index) + value + substring(index); return newValue; }