Accept format as symbol or string