is_char_mat function

validity of character matrices