add condition to remove all space or null record