Word replacing

What's the shortest code to replace every word in a string to have thefirst word letter to be upper case and the rest in lower case?Thanks
[160 byte] By [akhalil100a] at [2007-9-29 12:54:43]
# 1
X-post: http://forum.java.sun.com/thread.jsp?forum=4&thread=451282&tstart=0&trange=15
tschodta at 2007-7-15 2:57:42 > top of Java-index,Other Topics,Algorithms...
# 2

public class ProperCase {

private ProperCase() {}

public static String convert(String s) {

char[] chars = s.trim().toLowerCase().toCharArray();

boolean found = false;

for (int i=0; i<chars.length; i++) {

if (!found && Character.isLetter(chars[i])) {

chars[i] = Character.toUpperCase(chars[i]);

found = true;

} else if (Character.isWhitespace(chars[i])) {

found = false;

}

}

return String.valueOf(chars);

}

}

cybotxa at 2007-7-15 2:57:42 > top of Java-index,Other Topics,Algorithms...