Fixing string formatter warnings in demo code