searching for "www" might be a bit unsafe. better to search for /www/, or use stringByDeletingLastPathComponent