code: private boolean isBareS3NBucketWithoutTrailingSlash(String s) {
      String s2 = s.toLowerCase();
      Matcher m = Pattern.compile("s3n://[^/]*").matcher(s2);
      return m.matches();
    }
docs: Is there a bucket name without a trailing "/" ?