making looking for duplicates case insensitive