Check if not directory and ignore case