trimInstrSettings function

Trim the "instr.settings" attribute