improve format string checker