def va_from_string(value):
    """
    Convert HEX string to int
    :param str value: int as string
    :return int: virtual address
    """
    try:
        return int(value.rstrip("L"), 16)
    except ValueError:
        return 0