Refactored replacing characters for words
Implemented hiding chars