Trim_list improment