else { print("Oops. Something went wrong!") } How It Check if string starts with string Problem I want to check if a string starts with another string. Solution First .