Write a function to reverse a string or check if a string is a palindrome.
Implement is_palindrome(s), which returns True when s reads identically from left to right and right to left, and False otherwise. Treat characters as case-sensitive and do not ignore spaces or punctuation.
Input: A string s.
Output: A Boolean value indicating whether s is a palindrome.
The function should handle empty strings and strings containing repeated characters.
def is_palindrome(s):