def output_file_name(file_name):
    """
    Validates name of the output file.
    This expects only the name without the file extension. However, if specified, it will remove it.
    :param file_name: name of output file
    """
    if file_name.endswith(".xlsx"):
        file_name = file_name[:-len(".xlsx")]

    return file_name