Method returns bool:
true so the text begins with the text
str
false in another case
Example
C#
string str1 = "Hello world!";
string str2 = "HE";
// case-insensitive
bool bStart = str1.StartsWith(str2, StringComparison.OrdinalIgnoreCase);
// bStart = true