fixed mistakes except for search while ignoring unicode chars