Changed string formatting: replaced '%' operator with .format