What's the problem on line 18
Nothing. You just can’t leave the input field empty. You could use try and catch statements to check if the user left it empty or not. You must make the x variable public and declare it outside changeFromCapitals() function. Else you will get error on line 46
shouldn't not be in front of x?