remove()
Modify in place a String removing chars from the provided index to the end of the String or from the provided index to index plus count. myString.remove(index)myString.remove(index, count)
myString: a variable of type String. index: The position at which to start the remove process (zero indexed). Allowed data types: unsigned int. count: The number of characters to remove. Allowed data types: unsigned int. Nothing
String greeting = "hello";
greeting.remove(2, 2); // greeting now contains "heo"