Enhancement:handle no match found for the search string
make use of String.equalsIgnoreCase() instead of just String.equals()
Fix:handle cases when mr. instead Mr. given
avoid use of exception.printStackTrace()
remove unneccessary comments