in
rtrimstr("")
""
Example --- **Before this fix**: ```sh $ jq -n '"foo"|rtrimstr("")' "" ``` **After this fix**: ```sh $ jq -n '"foo"|rtrimstr("")' "foo" ```