def remove_ending_whitespace(prompt: str) -> str:
    """Remove ending whitespace from string.

    Args:
        prompt (str): prompt to remove from

    Returns:
        str: The resulting string
    """
    return prompt.rstrip()