trim urls and show url or search query in notification