Removes unnecessary whitespaces.