Display values when their prefix matches the input. Otherwise, display values when they contains the input.
Example:
apple orange grape
apple
apple grape