The defendant is a municipal corporation composed of the inhabitants of a city in Humboldt County. The action, which is for the value of legal services performed at San Francisco, was commenced in the superior court of the city and county of San Francisco. On motion of defendant, the court made an order changing the place of trial of the action to Humboldt County. The plaintiff appeals from this order.
The first point made in support of the appeal is, that the defendant made no written demand for a change of the place of trial, such as is required by section 396 of the Code of Civil Procedure. There was a written demand filed at the proper time in the following form: — “ To the Honorable Judge of said Court, and to Charles J. Heggerty, Esq., Attorney for said Plaintiff:—
“ We hereby demand that the place of trial of this cause be changed to the proper county, viz., the county of Humboldt, California.
(t Dated this first day of September, 1890.
“J. N. Gillett,
“ Eureka, California.
“Haven & Haven,
“San Francisco, California.”
It is contended that this was a demand, not by the defendant, but by its attorneys, and in favor of such construction it is insisted that the provisions of the statute relating to change of the place of trial must receive a strict construction. We know of no reason why they should be subjected to a strict construction. The rule, on the contrary, is, that remedial statutes should *138be liberally construed in favor of the remedy, and rules of procedure are remedial in their nature. The law advises the plaintiff as to the proper county in which to commence his action, and he ought to follow the rule prescribed. He is indulged so far, however, that when the county in which the action is commenced, is not the proper county for the trial, the action may nevertheless be tried therein, unless the defendant, at the time he appears and answers or demurs, files an affidavit of merits, and demands in writing that the trial be had in the proper county. (Code Civ. Proc., sec. 396.) With respect to the demand here required, nothing appears to have been deemed essential, except that it be made in writing, — like motions generally, — and that it be made promptly before the court in which the action was commenced has been called upon to deal with its merits. Subject to these reasonable conditions, the fullest recognition should be accorded to the right of the defendant to have the case transferred to the proper county. The cases in which it has been held that, in addition to written notice of his intention to move for a change of the place of trial, the defendant must also serve and file another paper in the literal form of a demand for a change (a proceeding entirely superfluous), seem to have gone as far in the way of strictness as there is any call for. Here we have, in addition to a notice of the motion, a demand in writing, the only objection to which is, that the attorneys of the defendant, describing themselves as such, say that they demand, instead of saying that the defendant demands. It may be that they do not formally comply with the literal terms of the statute, but they have satisfied its reason by a substantial compliance, and that is sufficient.
Coming to the merits of the order, we will notice, in the first place, the contention of appellant, that the right to commence the action and have it tried in San Francisco is given by section 16 of article XII. of the constitution. To this view we cannot assent. The twelfth article of the constitution relates exclusively to private *139corporations, and consequently the provisions of section 16 have no application to a suit against a public municipal corporation. The statute alone must be looked to for a definition of the right of defendant as to the place of trial of this action; and as there is no specific provision on the subject of actions against municipal corporations, other than counties, the question is narrowed down to this: whether the defendant is a resident of Humboldt County within the meaning of the general provision (Code Civ. Proc., sec. 395) requiring actions like this to be tried in the county in which the defendant resides. It is argued that a municipal corporation cannot be said* to reside anywhere, because it is an entity incapable of having a residence. This is undoubtedly true in the ordinary and restricted sense of the word “residence.” But in this respect a municipal corporation occupies a position at least as favorable as an ordinary trading corporation, and it is settled law in this state that a domestic trading corporation, within the meaning of this statute,, resides in the county where it has its principal place of business. This was first decided in 1863, in the case of Jenkins v. California Stage Co., 22 Cal. 537, and remained unquestioned at the time our present code of procedure was adopted. It must therefore be assumed that the legislature, in adopting section 395, intended it to apply to corporations. One of the departments of this court, it is true, did criticise the doctrine of Jenkins v. California Stage Co., 22 Cal. 537, in two cases decided here in 1884, and seems to have intended to overrule it. (California Southern R. R. Co. v. Southern Pacific R. R. Co., 65 Cal. 394, 409.) In another case reported in the same volume (p. 601), the other department also seemed to doubt the correctness of the decision in Jenkins v. California Stage Co., 22 Cal. 537. But in a later case, decided by the court in Bank, the doctrine of Jenkins v. California Stage Co., 22 Cal. 537, was distinctly reaffirmed, as we think it ought to have been, and the question must be considered closed. (Cohn v. Central Pacific R. R. Co., 71 Cal. 488.)
*140By an obvious mistake in a reference, the case in 65 Cal. 394, is cited as authority in Fresno Nat. Bank v. Superior Court, 83 Cal. 497, where it is evident the case of Jenkins v. California Stage Co., 22 Cal. 537, was meant, for the doctrine of the earlier case is distinctly reaffirmed. It is, then, as we have said, settled law of this state that a domestic trading corporation resides, within the meaning of section 395 of the Code of Civil Procedure, in the county where its principal place of business is; and if so, a municipal corporation a fortiori resides where its territory is, and where all its constituents reside. The defendant therefore had a right to demand a transfer of this cause to Humboldt County.
Order affirmed.
McFarland, J., and Harrison, J., concurred.