small refactor to stripForParts in Html doc