def isintegral_str(txt: str) -> bool:
    """Return true iff argument is an integer string."""
    if not isinstance(txt, str):
        return False
    try:
        int(txt)
        return True
    except ValueError:
        return False