Strip generated code of product
The template code or product suffix code allow to have trailing and leading spaces but not the code of the product. So we must compare the code with a stripped version of the generated code to avoid infinite loop.
Closes #12801 (closed)