cleanup substr docs