modified trim-directive-whitespaces.