Used str.format() instead of %s