Predictive mode - version 1.1

Handled valid prefixes.
Need to handle hyphen case when invalid prefixes appears.
Need to handle backspace for predictive mode.
Test for cases when switching between predictive and non-predictive
mode.
Separate code for MVC.