Clean extra tag contents when determining field name