bug fix: now handles a string containing an escaped square bracket before the first format mask field if there is only 1 field.