removes excess whitespace