Added subroutine to remove uris from tokens