import string


def is_palindrome(s):
    """
    function to check if a string is palindrom or not 
    Returns a boolean value
    """
    s = s.lower() #convert the whole string into lowercase letters
    s = s.translate(None, string.punctuation) #removes pucntuation from the string, is there is any
    s = s.replace(" ", "") #Removes whitespaces from a string

    return s == s[::-1]