[TSTR] use tstr_init instead of manual settings in extract string function