removes unnecessary whitespace