transform term name to tid