if the list is input on some text field, you could use "name, name2, name3" format instead.
when the input is done, then just do split() on the names string and it becomes array.