Fixed issue #2 by making the function isFullCommand