code: private static final String trimFirstWord(String s) {
          s = s.trim();
          char[] chars = s.toCharArray();
          int firstSpace = -1;
  
          for (int i = 0; i < chars.length; i++) {
              char c = chars[i];
              if (Character.isWhitespace(c)) {
                  firstSpace = i;
                  break;
              }
          }
  
          if (firstSpace == -1) {
              return s;
          }
  
          s = s.substring(firstSpace).trim();
          s = capitalize(s);
  
          return s;
      }
docs: Trims off the first word of the specified string and capitalizes the
  new first word