Added case-insensitive check of attribute name