Created function replace BBTag