Remove newlines and add spaces in main.cpp