Hey Lenny,
First off, please post your code, formatted, as the indentation is a critical factor of its operation.
That said, I’m having some trouble in understanding what you want as the output, so maybe you could post something that shows what you want – a picture is worth a thousand words, as the saying goes, but I don’t mean that in a literal sense, rather post something like:
I want the given name here
I want the family name here
… or some-such.