[cstdstring] demise Mid() and replace with substr