code: @Nullable
    protected static String rtrim (@Nullable final String sStr)
    {
      if (StringHelper.hasNoText (sStr))
        return sStr;
  
      int pos = sStr.length ();
      while (pos > 0 && Character.isWhitespace (sStr.charAt (pos - 1)))
      {
        --pos;
      }
  
      return sStr.substring (0, pos);
    }
docs: Remove the trailing whitespace from the specified String.
  
  @param sStr
  The String to remove the trailing padding from.
  @return The String of without the trailing padding