Fix format string validation
Merge pull request #168 from pavel-belikov/format_valid_fix

Fix format string validation