but...
drshark...
why your udf is named "getFirstOU" if you want the whole string?

if you want the whole string single line of substr is enough.
_________________________
!

download KiXnet