Split by newline and save updated value of each item in list