public boolean partSubstringMatches ( Part part , String s ) { return part . length == s . length ( ) && msg . regionMatches ( part . index , s , 0 , part . length ) ; }
Compares the part s substring with the input string s .