Updated API filtering to make it case insensitive.