In cases in which the plaintiff is a nonresident of the state or a foreign corporation or a foreign limited liability company at the time of commencing the action or if the plaintiff removes from the state after its commencement, the plaintiff shall furnish sufficient security for costs.
SDCL 15-9-1