Passing String parameters

If you are getting Char, I suspect you are iterating through a String.

perhaps you want

expand_urls(["http://www.google.com"])

to iterate through an array