implement restrict option

restrict option (default false) force the user to type something matching suggestions