fixed error description by not adding text which was screwing the replace