updating the hard coded allowed string patterns regexes