OPTIM + ENH simplify mix string and number check