def METHOD_NAME(data, new_input_files):
    new_data = data.replace(' $IN', ' ' + ' '.join(['$IN{}'.format(i)
                                                    for i in range(len(new_input_files))]))
    return new_data