def extract_pkid_from_uuid(pkid_or_uuid):
    """Removes all braces braces encapsulation included with AXL uuid if it exists.

    Does not use regex matching on start/finish for speed.  No validation is provided on uuid format.
    If braces do not exist, the original string should be returned as-is.

    :param pkid_or_uuid: (str) pkid or uuid
    :return: (str) pkid with stripped encapsulation
    """
    return pkid_or_uuid.replace('{', '').replace('}', '')
