string class speed tweaks - c_str() and substr() code (and re-ran regtests)