Replaced old style string formatting with new string.format