def remove_prefix(text: str, prefix: str) -> str:
    """Removes a prefix from a string, if present at its beginning.

    Args:
        text: string potentially containing a prefix.
        prefix: string to remove at the beginning of text.
    """
    if text.startswith(prefix):
        return text[len(prefix):]
    return text