Started to add some Exception blocks
Exception added and handled: NullPointerException, IllegalArgumentException.
These occur if input is null or not two words.