fixing repr bug when string contains single quote