Split line into words in bash

s='foo bar baz'
a=( $s )
echo ${a[0]}
echo ${a[1]}
...