Do grep of item in list correctly