BaseTools: use in to compare single chars