non dovresti allocare riga per riga ogni volta che aggiungi una stringa??