def unit_to_str(unit):
    """
    Converts unit into string that is in format to be passed to fitness function

    :param unit: unit
    :return: string representation of unit
    """
    unit_data = unit[0]
    unit_string = str(unit_data[0])
    for i in range(1, len(unit_data)):
        unit_string += " " + str(unit_data[i])
    return unit_string