return a list of items with the specified separator between the items
separator should support \t (tab) and \n (new line)
Created by Emma Montgomery