added getTypeString static function