We want a partial search here so make it .toLowerCase().contains(resourceName))