To convert a string to an array, say:
$ str="title1 title2 title3 title4 title5" $ arr=( $str )
The shell will split words into spaces if you do not specify a string.
To iterate over the elements in an array created in this way:
$ for i in "${arr[@]}"; do echo $i; done title1 title2 title3 title4 title5
devnull
source share