Added method String::clear(), and used it to replace a few uses of String::empty.