def normalize(msg):
    """
    Normalizes the plain text removing all invalid characters and spaces
    :param msg: Plain text to be normalized
    :return: the normalized message without invalid chars
    """
    return "".join([let.lower() for let in msg if let.isalpha() or let.isdigit()])