}
}
return listCopy.toLogoList();
} else if (obj instanceof String) {
if (!(value instanceof String)) {
throw new ArgumentTypeException(context, this, 0, Syntax.StringType(), value);
}
String string = (String) obj;
String elt = (String) value;
StringBuilder sbCopy = new StringBuilder();
if (elt.length() <= string.length() && elt.length() != 0) {
int i = 0;
while (i <= string.length() - elt.length()) {
if (!string.regionMatches(i, elt, 0, elt.length())) {
sbCopy.append(string.charAt(i));
i++;
} else {
i = i + elt.length();
}
}
if (i > string.length() - elt.length() && (!string.regionMatches(i, elt, 0, elt.length()))) {
sbCopy.append(string.substring(i));
}
return sbCopy.toString();
} else {
return string;
}
} else {
throw new ArgumentTypeException
(context, this, 1, Syntax.ListType() | Syntax.StringType(), obj);
}
}