def sanitize(url):
    """
        Clean/Sanitize the URL:
            - URL should always start with "http://" or "https://"
            - Remove #
            - Remove last "/"
    """
    # Check if URL starts with HTTP, if not then add
    if url[0:4] != "http":
        url = "http://" + url

    # Check if URL contains #, if yes, remove it
    pound = url.find("#")
    if pound != -1:
        url = url[:pound]
    
    # Check if URL ends with "/", if yes, remove it
    l = len(url)
    if url[l-1] == "/":
        url = url[:l-1]

    # Return sanitized URL    
    return url