Trim tag name