Hello, I am using Jaspersoft Studio 6.12.2. I am using the expression editor and need to compare a portion of a string that contains a number to a value. My error is in yhe first part of the statement I believe. my code is: Integer.valueOf($F{(expression)}.substring(0, 4)) < 1999 ? Arrays.asList("AP", "CA", "CC", "CP", "DR","GA","MH", "SC").contains($F{COLUMN_2}) ? "1OLDCIVIL" : "2OLDCRMNL" : "3NEWFILES" $F{(expression) is a string that I need to substring and get an example like 2020. Please help. I am still a newbie. Thx Dawn