Refactored and renamed several methods to make code cleaner.
Fixed bug in openingCharacterValidation, where it would read a character
even if scanner was empty.