removing white space from commands