Add support for check format with format function