Input type fix and added matlab table type in switch statement.

Fixed the check for a single input type so that it would correctly handle a single input. Added a switch statement to handle matlab tables.
This statement returns a length of greater than 1 when there is a single string input, since each character is considered to be in a column of the char array.