fixed two typos

--HG--
branch : trunk
diff --git a/jinja2/filters.py b/jinja2/filters.py
index df1d898..56a2e02 100644
--- a/jinja2/filters.py
+++ b/jinja2/filters.py
@@ -208,7 +208,7 @@
     """
     # if the delimiter doesn't have an html representation we check
     # if any of the items has.  If yes we do a coercion to Markup
-    if not hasttr(d, '__html__'):
+    if not hasattr(d, '__html__'):
         value = list(value)
         do_escape = False
         for idx, item in enumerate(value):