code: public static String toInitialCaps(String inString) {
      String lowerString = inString.toLowerCase();
      String outString = "";
      String alphaChars = "abcdefghijklmnopqrstuvwxyz";
      boolean doUpper = true;
      for (int i = 0; i < lowerString.length(); i++) {
        if (doUpper)
          outString += ("" + lowerString.charAt(i)).toUpperCase();
        else
          outString += lowerString.charAt(i);
        if (alphaChars.indexOf(lowerString.charAt(i)) >= 0)
          doUpper = false;
        if (lowerString.charAt(i) == ' ')
          doUpper = true;
      }
      return outString;
    }
docs: Takes the inString and capitalizes every leter that occurs after a non-alpha character.<br>
  "I like pizza" becomes "I Like Pizza"<br>
  "DON'T EAT THAT" becomes "Don'T Eat That"