trim search text