Surendra,
This case described normally wont arise because user can not select something which is not there in list.
If you still consider setValue(
String str) should not have set something not offered in list then override the set
Value(...) to filter unwanted values.