remove necessary space