fix StrAfterTest
fix HashFunctionTest
Fix StringCast