Removed String[] names

replaced all references to names with entries[i].getClass().getSimpleName()