foor loop in array of strings in bash