Switched replaceKeys for setText

Add deprecation message