replacing extra characters with symbols