def format_word(word: str) -> str:
    """
formats a word by removing linebreaks changing it to lowercase
    :param word: the word to format
    :return: the formatted word
    """
    word = word.lower()
    lbi = word.find("\n")
    if lbi > 0:
        word = word[:lbi]
    return word