support setFormat string