rm space with while loop