Replace anchor text to number id