classify input type of string