fix change custom field value case

Comparing the lowercased version of the old and new value prevents
changing the case of a custom field value.