Deletion of unnecessary spaces