Ok, thanks.
The string example should only demonstrate working with objects. I work with file objects, but I did not want to post the whole entire source code.
in detail, I am concerned with how objects are treated in the example above (otherwise think of Object "File" instead of "String").