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
(grafted from 79e4677f878eaedbaa882af75f450cfc9958624b)
--HG--
branch : 7.0