First, you need an array to map number to string, like this:

String[] number = {"zero","one","two","three","four","five","six","seven","eight","nine"};

And then you need to split your string to...