added an isAllowableStringFormat function. Allowable formats are hard coded for now, will make this a configurable option soon