so, if you are after the whole string, what you try to accomplish with:
$strStringEnde=instr(UCase($LDAP),",")

???
_________________________
!

download KiXnet