added a clear() method to the PosInText2Str class