small bug in valid_chrs regex