Check for sequence of whitespaces and non-breaking-spaces

There are still some issues. If there is a nbsp between characters, this should be transformed to a empty space