Did some more work on the back end fuctionality, but the replacement text is still not appearing correctly.