[Refactoring] Simplify the code for DIP29
fix Issue 12467 - char[] is implicitly convertible to string
Merge pull request #3461 from 9rnsr/fix12467

[REG2.066a] Issue 12467 - char[] is implicitly convertible to string