The following line: `if (fieldName.trim().length > 0) {` has this error: TypeError: fieldName.trim is not a function