Move anchor closing tag inside string