Replaced deprecated string format operation (%) with format()