insert method

String insert(
  1. String text,
  2. int position
)

Implementation

String insert(String text, int position) {
  return substring(0, position) + text + substring(position);
}