TrigValSteering: Fix pattern matching in add_precommand
The pattern matching for adding a precommand was matching too wide string
in case similarly-formatted options followed, e.g. '--preExec "foo" --postExec "bar"'
could be matched instead of just '--preExec "foo"'
. Fix this by refining the match
after the first search.
Fixes ATR-23529