Remove unnecessary whitespaces.