Added 2 new methods

Added isAlpha() and isDigit() method and changed the indentation of the
isEmpty() method.