check that every element of pattern array is of type string
check that every element of pattern array is of type string

- before using string specific methods

ioBroker/ioBroker.js-controller,ioBroker/ioBroker.js-controller,ioBroker/ioBroker.js-controller