user
Write a response that appropriately completes the request.

### Instruction:
Create a function that checks whether the given string is a palindrome or not.

### Response:
assistant
def check_palindrome(string): 
  # Remove all non-alphanumeric characters 
  string = string.lower().replace("[^a-zA-Z0-9]", "") 

  # Check whether the string is empty or not 
  if string == '': 
    return False

  # Reverse the given string and check if it is equal to the original string 
  return string == string[::-1]