See the API for the contains method you are using (I am guessing 'users' is an array of String objects) - does it use regular expressions?