implements xslt function trim()