Bugfix: ensure to compare strings

Don't forget that any parameters retrieved via URL patterns are strings,
and comparisons need to take that into account.