LPS-43943 Add extra check to make sure we don't change incorrect cases