Removed the deprecated method for setting text.