code: protected String trimSlash(@NonNull String target) {
          target = trimStartSlash(target);
          target = trimEndSlash(target);
          return target;
      }
docs: Remove the '/' at the beginning and ending.
  
  @param target target string.
  
  @return rule result.