add valid character test case on strict mode