def METHOD_NAME(text: str) -> str:
    # Use indoor voice
    if text.isupper():
        text = text.capitalize()
    # Censor bad words
    swears = re.compile(r"shoot|dang|heck", re.IGNORECASE)
    text = swears.sub(repl=lambda m: "*" * (m.end() - m.start()), string=text)
    return text