fixing the space issue in building commands