Use string templating, and different slicing

No need to merge this, just wanted to show you some fancy string templating you could use, as well as slightly more 'pythonic' slicing.