var strA = 'abc';
var strB = String('abc');
typeof strA; // 'string'
typeof strB; // 'string'
strA instanceof String; //false
strB instanceof String; //false
strA instanceof Object; //false
var strC = new String('abc');
strC instanceof String; //true
function isString(s) {
return typeof(s) === 'string' || s instanceof String;
}