added array support for endsWith validator