Fixed type comparision with the new string method isTypeOf