code: public static String splitIndex(String str, int character, int index) {
  		if (character > 255 || character < 1 || index < 0) {
  			return null;
  		}
  		String[] values = StringUtils.splitPreserveAllTokens(str, (char) character);
  		if (index >= values.length) {
  			return null;
  		} else {
  			return values[index];
  		}
  	}
docs: Split target string with custom separator and pick the index-th(start with 0) result.
  
  @param str   target string.
  @param character int value of the separator character
  @param index index of the result which you want.
  @return the string at the index of split results.