docs: def validate_url(cls, url):
          """Strip and trailing slash to validate a url
  
          :param url: the url address
          :return: the valid url address
          :rtype: string
          """
  
          if url is None:
              return None
  
          url = url.strip()
          while url.endswith('/'):
              url = url[:-1]
          return url