if ($query->param($key) =~ /([^\/\\]+)$/) { # is this removing spaces ??