Implemented deletion of spaces