Bugfix: Split string before checking, and make it case-insensitive.