If this is only for stripping leading "\returns", consider using QCString's stripPrefix() method. It is much more efficient.