implement char using stirng.