set up replace_letters method