def remove_prefix(string, prefix):
    """
    Removes a prefix from the string, if it exists.
    """
    if string.startswith(prefix):
        return string[len(prefix):]
    else:
        return string[:]