Fixed the Equals(typeof<string>) problem.