If any such non-resident shall be so arrested, he may apply by petition in writing to any Judge of this State, setting forth his residence and the State in which said debt was contracted, and it shall be the duty of said Judge, on the production of satisfactory proof that the plaintiff was a non-resident at the time of issuing the process, and also that the petitioner is a non-resident of this Sta