reads data from string array