string_compare [function]

string_compare( string str1, string str2, int max = 0, int from = 0 )

compares the two strings or the specified portions of them

string_compare( "what", "whaT" ); // int 1
string_compare( "what", "whaT", 3 ); // int 0
string_compare( "file.txt", ".txt", 0, -4 ); // int 0