def palindromic(s: str) -> bool:
    """
    Checks whether a string is a palindrome.
    """
    size = len(s)
    for i in range(size // 2):
        if s[i] != s[size - 1 - i]:
            return False
    return True