Adding ToLowerInvariant to compares and also removing a redundant method copied in from my cropper package but not needed