Fix string formatting to be 2.6 compatible