I am after the coplete string so after calling the function it should be someting like this: "OU=1,OU=2,OU=3,OU=Test,DC=test,DC=dom".

But when using your suggestion it says: Missing "(" in line 12...