Fixes tag name trim