// processing text manipulation through string operations // more methods here: // http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html void setup() { String s = " We shall fight them on the beaches"; println("a: " + s); s = s.trim(); // remove leading or trailing whitespaces println("b: " + s); String sl[] = split(s, " "); // create array of words, divided by whitespaces for (int i=0; i