fcn f(text,p){ if(text.find(p)==0)println("Yep") else println("Nope") } f("foobar","foo") //--> Yep f("foobar","bar") //--> Nope