#JC-1754:Code review remarks corrected.
String concatenation in loop replaced by StringBuilder