process BG string to know if it is a web or local address