Remake 'switch-case' for input analizator.

'switch-case' for JDK 1.6 not supported String type. Remake to Integer
type with HashMap.