remove excess whitespaces