format string with object fields as args