Trim spaces in the tag content