def get_correct_query(input_query: str):
    """
    Ignoring multiple whitespaces in input string

    :param input_query: string
    :return: same query with 1 whitespace between words
    """
    correct_words = []
    words = input_query.split(' ')
    for w in words:
        w = w.strip()
        if w != '':
            correct_words.append(w)
    ret = ""
    for w in correct_words:
        ret += w + " "
    return ret.strip()