Fix format string validation

 #167