from typing import Optional


def _text_compare(t1: Optional[str], t2: Optional[str]) -> bool:
    """Compare two text strings, ignoring wrapping whitespaces.

    Args:
        t1:
            First text.
        t2:
            Second text.
    
    Returns:
        True if they are equal, False otherwise.
    """
    if not t1 and not t2:
        return True
    
    #if t1 == '*' or t2 == '*':
    #    return True

    return (t1 or '').strip() == (t2 or '').strip()