isStringType function
allow isStringType function to get the type if it is given something else, e.g. a global variable, a Value, etc.