Given a string s, write a function that returns true if s is a palindrome and false otherwise. A palindrome reads the same forward and backward. Compare characters exactly as given, including case, spaces, and punctuation.
Example 1:
Input: s = "racecar"
Output: true
Explanation: The string is identical when read from left to right and right to left.
Example 2:
Input: s = "hello"
Output: false
Explanation: The first and last characters differ, so it is not a palindrome.
0 <= len(s) <= 10^5s contains ASCII characters