change a resource text.