steve.py: add ltrimstr and rtrimstr (from `jq`)