fix type error in String.definesAny()/definesEvery()