str: Implement trait Mutable for ~str with the method .clear()

fixes issue #7900