refactor to allow adding TLDs as well as finding them at the end of the words