Returns the field at index i if it exists, otherwise returns an empty string.
i
String getField(int i) { if (i < 0 || i >= fields.length) return ''; return fields[i]; }