convert incoming string to array