Refine empty element removal algorithm to use stripped_text method