def normalize_query(query):
    """
    Perform query normalization.

    At the moment, this is simply downcasing and stripping whitespace from the ends. Extend this as
    needed.

    Args:
        query (str): A query string

    Returns:
        A normalized query string
    """
    return query.lower().strip()