static private boolean matchPrefix(String s1,String s2){
  return s1.startsWith(s2) || s2.startsWith(s1);
}

static private boolean matchPrefix ( String s1 , String s2 ) { return s1 . startsWith ( s2 ) || s2 . startsWith ( s1 ) ; }
checks with either of the strings starts with the other .
