diff --git a/web/src/main/java/org/jboss/as/metadata/parser/servlet/TaglibMetaDataParser.java b/web/src/main/java/org/jboss/as/metadata/parser/servlet/TaglibMetaDataParser.java
index <HASH>..<HASH> 100644
--- a/web/src/main/java/org/jboss/as/metadata/parser/servlet/TaglibMetaDataParser.java
+++ b/web/src/main/java/org/jboss/as/metadata/parser/servlet/TaglibMetaDataParser.java
@@ -58,10 +58,10 @@ public class TaglibMetaDataParser extends MetaDataElementParser {
             final Element element = Element.forName(reader.getLocalName());
             switch (element) {
                 case TAGLIB_URI:
-                    taglib.setTaglibUri(reader.getElementText().trim());
+                    taglib.setTaglibUri(reader.getElementText());
                     break;
                 case TAGLIB_LOCATION:
-                    taglib.setTaglibLocation(reader.getElementText().trim());
+                    taglib.setTaglibLocation(reader.getElementText());
                     break;
                 default: throw unexpectedElement(reader);
             }
Remove the trims, the staxmapper will do that eventually (STXM-3).