Removed unnecessary function for cleaning tags