import uuid


def is_valid_uuid(val):
    """
    Check if a string is a valid uuid
    :param val: uuid String
    :return: Returns true if is a string is a valid uuid else False
    """
    try:
        uuid.UUID(str(val))
        return True
    except ValueError:
        return False