refactors some style issues with java standard in Scanner.*