I will give that a try asap. I'm a bit busy at the moment, ill provide an update asap. Thank you once again.
// called with something like
String road = roadStep("___3_31__2__");
// and using this method
private String roadStep(String input)
{
String output = "";
String under = "";
for (int i=input.length()-1; i>=0; i--)
{
char c = input.charAt(i);
if (c == '_')
{
under += "_";
continue;
}
if (under.length() >= c-48)
{
output = c+under.substring(c-48)+output;
under = under.substring(0, c-48);
}
else
{
if (c-48+i >= input.length())
under += "_";
else
output = c+output;
}
}
return under+output;
}