The beginning of a string

Is it possible (and if so how) to write an if-statement that looks for the first part of a string

Example


if (textF.text == "/page/" + etc.){
    // do something
}
else if (textF.text == "/item/" + etc.){
   // do something else
}

Obviously, + etc. cannot be used, but I just used it to communicate what I’m wanting to do.