remove newlines in initial list