some practice about cfg & format string