def stata_string_escape(text: str) -> str:
    """Escape a string for Stata.

    Use this when a string needs to be escaped for a single line.

    Args:
        text: A string for a Stata argument

    Returns:
        A quoted string.
    """
    new_text = text
    new_text = new_text.replace('\n', ' ')
    new_text = new_text.replace('\t', ' ')
    new_text = new_text.replace('"', "'")
    return f'"{new_text}"'