Stop concatenating Strings with + in loop [sonar].

We use a StringBuilder instead. This was a critical violation in Sonar.