Handles duplicate spaces, worked out (mostly) how reddit does linkification