rewrote to use regex again for finding illegal character
rewrote to use regex again for finding illegal character

Squishymedia/BIDS-Validator,nellh/bids-validator,Squishymedia/bids-validator,nellh/bids-validator,suyashdb/bids-validator,nellh/bids-validator