private ArrayList<String> removeEmptyEntries(ArrayList<String> array) {
        // ArrayList to hold non-empty strings
        ArrayList<String> temporaryArray = new ArrayList<String>();
        // Populates ArrayList
        for (String s : array)
            if (!s.equals(""))
                temporaryArray.add(s);
        return temporaryArray;
    }