Replaced string concatenation with StringBuilder usage for increasing performance.