always returns complete URLs, formats output to remove excess whitespace