Added exception to handle a case of empty input. Fixed tests to check for
the exception text.