Remove unnecessary whitespace from commands