def redact_after_symbol(text:str, symbol:str) ->str:
    """Replaces all characters after a certain symbol appears with XXXXX"""
    r_start = text.find(symbol)
    r_len = len(text) - r_start
    to_redact = text[r_start:]
    return text.replace(to_redact, "X"*r_len)