Fix string format error in 2.6

In 2.6, you should give index value to format.
Merge pull request #72 from limodou/patch-1

Fix string format error in 2.6