fix StringSubstr and ObjectName