Loop working, but realized spaces do not work for cmd