The string input comes from textarea where users are supposed to enter every single item on a new line.
When processing the form, it is easy to explode the textarea
$arr = preg_split( "/[\n\r]+/", $textareaInput );