Some Refactoring done on stringbuilder
demo added