Issue #3086845: Module constraint checks fail incorrectly due to str_replace

Merge request reports