better parsing for DocString