Fixed formatting to shorten functions.

The string formats were taking up between 3-6 extra lines.
I reduced as much as possible without compromising readability.