I wrote the question not very well. I have the following problem: in testsuites and testcases properties I have a lot of entry that I want to remove each time I execute the test. The in the testsuite and testcase have differnet names.
Between these properties, in all testsuites and testcases, I have the same properties that must not be removed.
With the above script the properties that begin with the strings specified in the test case are removed; I asked if there is an option to specify in the if case the strings of the properties that must not be removed.