sbool isSpaces(S s) { int n = l(s); for i to n: if (!isSpace(s.charAt(i))) false; true; }