Added some simple code to clean the SA tag by removing the trailing semi-colon.