JavaScript Tutorial/String/toString
String.toString()
If invoked on the core String object, will return the object type or the name of the constructor that created the object. This will be something like the following:
function String() { [native code] }