Revert "LPS-38340 Revert as it its breaking one test"

This reverts commit c2c0ccd2f8d0ec2e1ebaaa7464660c27593442c0.
LPS-38340 The comparison should be case insensitive