added code to drop the empty string in the argument list.

This condition typically happens when the command line has spaces
at the tail.