defined the data types, split the whole string into line by line list