replace predefined charaters with their pair