From http://stackoverflow.com/questions/8880603/loop-through-array-of-strings-in-bash-script