Recognize URLs in strings and rewrite them as anchor tags