String strone = "dishwasher";
String strtwo = "dish";
String strthree = strone.substring(0,4);
System.out.println(strthree + " >>");
if (strtwo.equalsIgnoreCase(strthree))
{
System.out.println("true");
} else {
System.out.println("false");
}