code: protected String stripPrefixIfPresent(String path) {
      String stripedKey = CommonUtils.stripPrefixIfPresent(path,
          PathUtils.normalizePath(getRootKey(), PATH_SEPARATOR));
      if (!stripedKey.equals(path)) {
        return stripedKey;
      }
      return CommonUtils.stripPrefixIfPresent(path, PATH_SEPARATOR);
    }
docs: Strips the bucket prefix or the preceding path separator from the path if it is present. For
  example, for input path ufs://my-bucket-name/my-path/file, the output would be my-path/file. If
  path is an absolute path like /my-path/file, the output would be my-path/file. This method will
  leave keys without a prefix unaltered, ie. my-path/file returns my-path/file.
  
  @param path the path to strip
  @return the path without the bucket prefix