import string


def is_hex(arg: str) -> bool:
    """
    Check if a string value represent an hexadecimal value.

    :return: True/False
    """
    res = all(c in (string.hexdigits + '\n') for c in arg)
    return res