fixed substr scalar doctest