Text: Remove replaceWholeText() which is deprecated

Closes #79