Text variables will automatically end when they come across a carriage return or linefeed. You'll have to either strip them before you assign them to a variable, or assign them to multiple variables (%list.1, %list.2) or a hash table. It depends on how you plan to use the data.