refactor link creation in tweet text