def remove_prefix(string: str, prefix: str) -> str:
    """
    >>> remove_prefix('abc', 'ab')
    'c'

    >>> remove_prefix('abc', 'd')
    'abc'

    >>> remove_prefix('abc', 'abcd')
    'abc'
    """
    return string[len(prefix) :] if string.startswith(prefix) else string