def is_palindrome(text, perfect=False):
    """
    Return a palindrome checking result of text.

    (case-insensitive alphanumeric string).
    if perfect is True, then text must be a perfect palindrome.
    """
    if perfect:
        if text == text[::-1]:
            return text + " is a perfect palindrome!"
        return text + " is not a perfect palindrome."
    test = ''.join(c.lower() for c in text if c.isalnum())
    if test == test[::-1]:
        return text + " is a palindrome!"
    return text + " is not a palindrome."