vabbè bastava mettere un if alla fine per valutare se l'ultimo è numerico