Trim list in search mode