truncate tag name