code: public static String capitalizeWords(String str) {
  		if (str == null || str.equals(""))
  			return str;
  
  		String[] words = str.split("[\\s\\r\\n\\t]+");
  		if (words == null || words.length == 0)
  			return "";
  
  		StringBuffer sb = new StringBuffer();
  		for (int i = 0; i < words.length; i++) {
  			if (i > 0)
  				sb.append(" ");
  			sb.append(capitalize(words[i]));
  		}
  
  		return sb.toString();
  	}
docs: 每个word的首字母都大写