avoid consecutive whitespaces