Created method to set hero name.