convert arraylist to string array