add apply_format wrapper for stringifying