Move disallowedChars to global DisallowedChars
Add missing stringInSlice