def get_trimmed_string(value):
    """
    Returns a string of value (stripped of \'.0\' at the end). Float values
    are limited to 1 decimal place.
    """
    if isinstance(value, float):
        value = round(value, 1)
    value_str = str(value)
    if value_str.endswith('.0'): value_str = value_str[:-2]
    return value_str