Resolving weird chars escaping problem and group problem