def remove_prefix(val: str, prefix: str) -> str:
    'This function removes a prefix from a string.\n\n    Note this is a built-in function in Python 3.9 once we upgrade to it we should use it instead.\n    '
    return (val[len(prefix):] if val.startswith(prefix) else val)
This function removes a prefix from a string.

Note this is a built-in function in Python 3.9 once we upgrade to it we should use it instead.
def remove_prefix(val: str, prefix: str) -> str:
    'This function removes a prefix from a string.\n\n    Note this is a built-in function in Python 3.9 once we upgrade to it we should use it instead.\n    '
    return (val[len(prefix):] if val.startswith(prefix) else val)