def normalize_text(text: str) -> str: text = text.lower() tmp = text.split(" ") tmp = [word for word in tmp if word != ""] return " ".join(tmp)