trim term name before search