I know the classic way of dealing with linebreaks, tabs,.. is to .strip() or .remove('\n',''). But sometimes there are special cases in which these methods fail, e.g.
'H\xf6cke\n\n:\n\nDie'.strip()
gives: 'H\xf6cke\n\n:\n\nDie'
How can I catch these rare cases which would have to be covered one by one (e.g. by .remove('*', '')? The above is just one example I came across.