fixChar method