Replace arguments of commands