Finally got the code to work

The program asks for inputs.  The exercise is to take the inputs and
test them again no inputs or spaces.  If one of the inputs has no input
or spaces, the code is to throw an exception.