code: public static void cutSuffix(String suffix, StringBuilder stringBuilder) {
          if (stringBuilder.substring(stringBuilder.length() - suffix.length()).equals(suffix)) {
              stringBuilder.delete(stringBuilder.length() - suffix.length(), stringBuilder.length());
          }
      }
docs: 从字符串构造器剪掉结束符
  
  @param suffix        suffix
  @param stringBuilder stringBuilder