def is_valid_str(s: str) -> bool:
    """
    Check if the input string is not empty.
    :param s: Input string.
    :return: True if the string is not empty.
    """
    if s is None:
        return False
    if not isinstance(s, str):
        return False
    if len(s) <= 0:
        return False
    return True