code: @Nullable
    public static String getFirstToken (@Nullable final String sStr, final char cSearch)
    {
      final int nIndex = getIndexOf (sStr, cSearch);
      return nIndex == StringHelper.STRING_NOT_FOUND ? sStr : sStr.substring (0, nIndex);
    }
docs: Get the first token up to (and excluding) the separating character.
  
  @param sStr
  The string to search. May be <code>null</code>.
  @param cSearch
  The search character.
  @return The passed string if no such separator token was found.