Clean up example slightly

Fixes syntax/indentation
.join() instead of iteration / string building.