Retriving double index from input string?

I am sure, this have been asked before, I just came up short handed on search.

How do I read an input from a string, and divide this up into two sets, eg. “Render 230” → Render function, with “230”. This must have been asked, since it’s same context as multiplayer games with “votekick name” or so.

(javascript)

Answering myself for future ref.

Using two string variables, you can convert one into a new string, using only part of the old string, eg.

String2 = String1.Remove(0, 6);

Removes first six letters, leaving the string two to be from 7th and on. Now this doesn’t solve how I DETECH for this, unless I wanted a huge case of 'if remove 7,infinit … compare if now is render.