Replace % formatting with str.format