Fixed incorrect string building inside main().