Fixed errors introduced with the new function (_lenCmdStr)