code: private URL convertUrl(StringBuilder searchUrl) throws FanartTvException {
          try {
              LOG.trace("URL: {}", searchUrl.toString());
              return new URL(searchUrl.toString());
          } catch (MalformedURLException ex) {
              LOG.warn(FAILED_TO_CREATE_URL, searchUrl.toString(), ex.toString());
              throw new FanartTvException(ApiExceptionType.INVALID_URL, "Unable to conver String to URL", 0, searchUrl.toString(), ex);
          }
      }
docs: Convert the string into a URL
  
  @param searchUrl
  @return
  @throws FanartTvException