code: protected String getSpaceId(String bucketName) {
          String spaceId = bucketName;
          if (isSpace(bucketName)) {
              spaceId = spaceId.substring(accessKeyId.length() + 1);
          }
          return spaceId;
      }
docs: Converts a bucket name into what could be passed in as a space ID.
  
  @param bucketName name of the S3 bucket
  @return the DuraCloud space name equivalent to a given S3 bucket Id