strip whitespace after the self-closing tag