added 'allowed' option

now allows user to set a type and an array of character exceptions