Grazie, ho provato e in console restituisce una stringa vuota, ho risolto mettendo nell'if un or che comprendesse anche la stringa vuota