added function to hide end of ip and plex tokens