def remove_prefix(text: str, prefix: str) ->str:
    """Removes the prefix from the string if it exists, and returns the result."""
    if text.startswith(prefix):
        return text[len(prefix):]
    return text
