def METHOD_NAME(_cls, string, prefix):
    if not string.startswith(prefix):
        raise ValueError("{!r} was supposed to start with {!r} but does not".\
                format(string, prefix))
    return string[len(prefix):]