Arduino subtracting chars from strings Hello I have an Arduino programme that has a string with the words hello in it. 
I can add characters and other strings to the end of that one using:

   String test = "hello";
   test+=" jack";


it would then say "hello jack"
The problem is I want to get rid of the last character of the string every 2 seconds so it would be "hello jac" then "hello ja" and so on. How can I do this?
You may use remove() method to remove last character.

String s = "1234567890";
while(s.length() &gt; 0) {
    int lastIndex = s.length() - 1;
    s.remove(lastIndex);
    Serial.println(s);
}