fix replace function
slide text reworked