Example1:
string input = \"Village Siaban WDT no.39 91308 Semporna Sabah\";
Example2:
string input = \"Village Hw WDT no.39
why not using a regex?
var word = Regex.Match(input, ".* ([^ ]*) [^ ]*").Groups[1];