The code suggestion is good but for ergonomic reasons, I am trying to convince people to waen themselves off of the extended Tcl (TCLX) c commands like cequal, csubstr, cindex, etc. The string commands are *MUCH* more optimized and will run several orders of magnitude faster if tou are running any Cloverleaf 3.8.1 or greater.
Just a suggestion. I know I still have to remind myself.