list contains case-insensitive

list used endswith and was case sensitive... now it shouldn't be