I do a split(' ') over an string and I want to pull the first element of the returned string in order to get the rest of the string.
f.e. "THIS IS AN AMAZING STRING".split(' ');
I want to get all the words but THIS. This is: IS AN AMAZING STRING
The string will always have at least one blank space between the first and the second word because I will put it hard coded
Is there a function that makes this?
thank you
try
As per comment (IF
Xis guaranteed to be a valid string with at least one space) a simpler version without checking etc.: