accepting [. _ -] as valid characters