Fixing findbugs error about string concatenation in loops.