No more spaces typed in input field. FIxed guessed array function