Check out example codes for "arduino remove()". It will help you in understanding the concepts better.

Code Example 1

// remove(index, count) > on variable of type String

String greeting = "hello";
greeting.remove(0, 1);  // greeting now contains "ello"
greeting.remove(2, 2);  // greeting now contains "el"

Learn ReactJs, React Native from akashmittal.com