scrap character replacement; simplify