Reimplement htmlCaseChanger with String.replace