Update IsRotation.java

We must check if the strings have the same length first!