def isPalindrome(string): 
    """
    Checks if the given string is a palindrome.

    Params
    ======
    string: str
    
    Returns
    =======
    result: bool
    """
    # Length of string
    length = len(string)
    
    # Loop through every character in the string 
    for cx, c in enumerate(string): 

        # Get the last index in the string
        cx_end = length - cx - 1

        # Only check if the characters are equal if cx is strictly less than cx_end
        # If it is an even-numbered string, cx being strictly less than cx_end ends only after the midpoint
        # If it is an odd-numbered string, the loop ends when cx == cx_end, which doesn't need to be checked
        if cx >= cx_end:
            break

        # Check c with the index at the end of the string
        if c != string[cx_end]:
            return False 

    return True