remove_xpaths is private and doesn't need to handle string inputs.