The toLowerCase()
Method
Look at these lines of code:
String burns = "My love is like a red, red rose.";
. . . . . .
if ( burns.toLowerCase().startsWith( " MY LOVE".trim().toLowerCase() ) )
System.out.println( "Both start with the same letters." );
else
System.out.println( "Prefix fails." );