Fixed missing mode command parameters. Trim text command.