handle mode command with trailing empty arguments