Jeanne,
Thanks for the reply. I tried your code, and it does indeed remove "Reference" from the list. However, what I noticed is that in your example, rather than declaring the instance string separately as I did in my post, you included it right in the reference method call at line 6 of your code. So it seems that the difference between our code boils down to the fact that you used "Reference Library" as your instance string, while I used "R" in mine. When I changed mine to "Reference Library" it was removed in my list also.
If I understood your explanation correctly, "Reference Library"::startsWith translates to "Reference Library".startsWith("Reference Library") in traditional
Java syntax. I don't understand how changing it to just "R" caused it to behave unexpectedly, but it worked for "Reference Library"