If I search for "c#" or anything with special characters, they somehow get removed.
Not sure which part of this removes the "#";)
(defun w3m-lookup-first-clipboard-item ()
"Look up the current word's definition in a browser.
If a region is active (a phrase), lookup that phrase."
(interactive)
(let (myword myurl)
(setq myword (current-kill 0))
(setq myword (replace-regexp-in-string " " "%20" myword))
(setq myurl (concat "https://www.google.com/search?q=" myword))
;;(browse-url myurl)
(w3m-browse-url myurl)
))