fixed printing of array of strings