Switched replaceKeys for setText

Add deprecation message
Merge pull request #337 from austenke/master

Changed replaceKeys to setText