truncate search title if too long