How to apply text changes