Fix empty value error and change string formatting to new style.