StringBuilder usage with class name change