input: Write a python function to check if a given string is a palindrome.
  assert isPalindrome("racecar") == True
  assert isPalindrome("hello") == False
  assert isPalindrome("level") == True
  assert isPalindrome("world") == False
output: def isPalindrome(s: str) -> bool:
      return s == s[::-1]