Added Replace Function(Not 100% complete yet)