The implementations of the Java Collection/List/Map interface always attempt to coerce to a "natural" Java object; in this case, that would produce a java.lang.String. Use one of the elt* functions, probably elt() or eltOk().