That won't even compile so how can you say it didn't seem to do anything?
Also you don't need both expressions if you are using equalsIgnoreCase - it doesn't matter what case you use ie "cRAcK" would be treated the same as "crack" or "CRACK" etc.

When calling an object's method you need to use '.' not a space and if you are passing a parameter to the method it needs to be inside the brackets.