import copy


def remove_prefix(string, prefix):
    """ Version of str.removeprefix implemented in python 3.9+ """

    string = copy.deepcopy(string)

    if string.startswith(prefix):
        string = string[len(prefix):]

    return string