code: public static String initCap(String str) {
          assertStringNotNull(str);
          if (is_Null_or_Empty(str)) {
              return str;
          }
          if (str.length() == 1) {
              return str.toUpperCase();
          }
          final char chars[] = str.toCharArray();
          chars[0] = Character.toUpperCase(chars[0]);
          return new String(chars);
      }
docs: ================