Predictive Text Search

How to search for a value from a list and return the value when a match is found.