use str.format instead of format string