check if parameter of ts2str is really numeric