def is_whitespace(char):
    """
    Checks if the character is a whitespace

    Parameters
    --------------
    char: str
          A single character string to check
    """
    # ord() returns unicode and 0x202F is the unicode for whitespace
    if char == " " or char == "\t" or char == "\r" or char == "\n" or ord(char) == 0x202F:
        return True
    else:
        return False