bugfixing empty command strings