Update HeroClass.java

Added substring functionality to set the Hero's name to max of 4 characters.