This patch implements `CappedString::clear`, which provides an easy way for users to clear the contents of a `CappedString`.