Update web.xml parsing to handle white spaces better