Use string formatting rather than concatenation.
Prefer single quotes.
Restructure parse functions.