CHAQS: Terminal error and other minor things

The precaution taken to ensure that the terminal output does not exceed the ui vertex limit was causing the rich text content to be corrupted. This situation has been resolved. Regex validation for following commands: c…