public static String removeFirstWord(String sentence)
  {
    if(sentence == null) {
      return null;
    }
    if(sentence.isEmpty()) {
      return sentence;
    }

    String firstWord = firstWord(sentence);
    if(firstWord.length() == sentence.length()) return sentence;

    int i = firstWord.length();
    for(; i < sentence.length(); i++) {
      if(WHITE_SPACES.indexOf(sentence.charAt(i)) == -1) break;
    }
    return sentence.substring(i);
  }
public static String removeFirstWord ( String sentence ) { if ( sentence == null ) { return null ; } if ( sentence . isEmpty ( ) ) { return sentence ; } String firstWord = firstWord ( sentence ) ; if ( firstWord . length ( ) == sentence . length ( ) ) return sentence ; int i = firstWord . length ( ) ; for ( ; i < sentence . length ( ) ; i ++ ) { if ( WHITE_SPACES . indexOf ( sentence . charAt ( i ) ) == - 1 ) break ; } return sentence . substring ( i ) ; }
Remove first word from a sentence. First word is recognized using the heuristic from {@link #firstWord(String)}.
White spaces after first word are also trimmed. For the purpose of this function white spaces are: space, tab,
carriage return, line feed, point, comma, colon and semicolon.
<p>
This method returns null if <code>sentence</code> argument is null and empty if empty.

@param sentence sentence to remove first word from.
@return the sentence with first word removed.