def fix_width(width, input_string):

    """ Cut or stuff the input string into a fixed width, by truncating longer ones and adding spaces to shorter ones.
        Input: (width, input_string) % (int, str)
        Output: (fixed_width_string) % (str)
    """
    input_string = str(input_string)
    width = int(width)

    if len(input_string) >= width:
        input_string = input_string[:width-3] + "..."
    else:
        input_string = input_string + ' ' * (width - len(input_string))

    return input_string