validate trim char in PhpTypeProvider2, possible phpstorm 7.1.2 break