Implement putKeyword for strings