improve input check
use existing LOCALE constant