Trim leading/trailing spaces from contest name.

For some reason, contest "TCO06 Round 2 " has a trailing space. This caused problems generating files from the templates because Windows removes trailing spaces when creating a folder, so the folder "TCO06 Round 2 /" could not be found.
Merge pull request #156 from kentskinner/master

Trim leading/trailing spaces from contest name.