handle null and empty strings in strn?split