Refactored song formatting.

This is my amateur attempt at coding some C++. At the least it's something to look at for grins and giggles. I tried to make the formatting method a little shorter and cleaner. I tested it to make sure it was getting the same results as before the re-factor, and it compiles and runs fine. Not sure the valid bool is in the right place/scope.