def scrub_string(string, secrets):
    """Given a string and a list of secrets, scrubs s of every secret."""
    for secret in secrets:
        if secret is not None and len(secret) > 2:
            string = string.replace(secret, '.' * len(secret))
    return string
