You also need to adjust the offset here since you strip off two preceding characters and the caller only see the actual tag name without "</".