Corrected string format params
Corrected assumption about dictionary content.