Fix format string validation