[TECH SUPPORT] LPS-45109 Infinite-loop in StringUtil

Hi Julio,

I'm forwarding a pull coming from @ZoltanTakacs , please review it.

Thanks,
Ákos