DF-4241 fixed comparison of char16 with char, added inline, removed commented code, added check for IsSpace