Fixed String.contains() error, as well as a few other issues.