The String class has methods you could use to test for empty
Or test the length of the array returned by split() to see if it has any elements (length > 0)