Fix a MethodNotFound error

Split returns an array, which does not have a Trim method. Instead, run
Trim within the for loop. Caused an error message and false negative
(DEP and ASLR reported false when they were in fact true).