code: @Nonnull
    public static String getWithoutTrailingChars (@Nullable final String sStr, @Nonnegative final int nCount)
    {
      ValueEnforcer.isGE0 (nCount, "Count");
  
      if (nCount == 0)
        return sStr;
      final int nLength = getLength (sStr);
      return nLength <= nCount ? "" : sStr.substring (0, nLength - nCount);
    }
docs: Get the passed string without the specified number of trailing chars.
  
  @param sStr
  The source string. May be <code>null</code>.
  @param nCount
  The number of chars to remove.
  @return An empty, non-<code>null</code> string if the passed string has a
  length &le; <code>nCount</code>.