Aspetta tu hai un array di stringhe, il set usa equals e hashcode per verificare l'uguaglianza, secondo me caschi lì