Update tools.h

use sscanf_s instead of stringstream in str2T