make the command line valid