remove unnecessary whitespaces