class Square.java length of the given string