check length of array that received as result of invoking of String.split()