Remove wrong spaces and newlines