Parse Top level and second level domain string from URL or string