Fixed end of a format string not being properly applied