Trim surrounding whitespace from xml content