Fix "/gate setto" command when called remotely

Create containsSubString utility for doing a partial string search
within an array.