removing bad white spaces