Implemented check for empty strings in parameters and passed test.