Adds check for empty command string