SonarCube Security Hotspot issues

A post was split to a new topic: Issue with replaceAll